package com.zhx.springcloud.learn.controller;

import com.zhx.springcloud.learn.service.HelloFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/01/04
 **/
@RestController
public class HelloFeignController {

	@Autowired
	private HelloFeignService helloFeignService;

	@GetMapping("/search/github")
	public String search(@RequestParam("str") String queryStr){
		return helloFeignService.searchRepo(queryStr);
	}
}
